package com.xian.demo;

public class Max {
    public static void main(String[] args) {
        int [] faceScores = {15,9000,10000,20000,9500,-5};
        int maxScore = faceScores[0];  //建议用第一个作为参照值

        for (int i = 1; i < faceScores.length; i++) {
            if(faceScores[i] > maxScore){
                maxScore = faceScores[i];
            }
        }
        System.out.println(maxScore);
    }
}
